package com.itheima.HomeWork.Demo01;

public interface RandomNumHandler {
    int getNumber();
}

class RandomNumHandlerDemo{
    void useRandomNumHandler(RandomNumHandler randomNumHandler){
        System.out.println(randomNumHandler.getNumber());
    }
}
class LamabdaTest3{
    public static void main(String[] args) {
        new RandomNumHandlerDemo().useRandomNumHandler(()->0);
    }

}